home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
util
/
dtype
/
cdt_39_10.lha
/
cdt
/
misc
/
debug.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-28
|
677b
|
45 lines
#ifndef DEBUG_H
#define DEBUG_H
/* debug.h
**
** $VER: debug.h 0.1 (31.03.94)
**
** by
**
** Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
**
** (C) Copyright 1994
** All Rights Reserved !
**
** $HISTORY:
**
** 31.03.94 : 000.001 : initial
*/
#define bug kprintf
#ifdef DEBUG
extern void kprintf(char *fmt,...);
#define D(x) x
#define DB(x) { bug(__FILE__ "(%4ld):" __FUNC__ "() :",__LINE__); \
bug x; \
}
#define ENTERING bug("entering " __FUNC__ "()\n")
#define LEAVING bug("leaving " __FUNC__ "()\n")
#else
#define D(x)
#define DB(x)
#define ENTERING
#define LEAVING
#endif
#endif /* DEBUG_H */